<script setup>

import {pageofficeOpenFile} from "@/plugins/pageoffice/pageoffice-common.js";
import {backMyDocList} from "@/utils/backList.js";
import AdviceList from "@/views/document/common/advice/adviceList.vue";

const {proxy} = getCurrentInstance()
const loading = ref(false)
const prop = defineProps({
  docId: {
    type: Number
  },
  isRefreshAdvice: {
    type: Boolean
  }
})

function openFinalFile() {
  pageofficeOpenFile('/document/my/common/openFinalFile/' + prop.docId, prop.docId)
}

</script>

<template>
  <el-row v-loading="loading" element-loading-text="正在执行，请稍后...">
    <el-col :span="12" class="left">
      <el-row>
        <el-form-item>
          <el-button @click="backMyDocList">返 回</el-button>
          <el-button type="primary" @click="openFinalFile">打开正文</el-button>
        </el-form-item>
      </el-row>
    </el-col>

  </el-row>
  <!-- 意见列表 -->
  <AdviceList :isRefreshAdvice="isRefreshAdvice"/>
</template>

